package com.yaodian100.ec.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * 
 * @author apple.chang
 * 
 */
@Entity
@Table(name = "EC_ANDE_PRODUCT")
public class AndeProduct extends BaseEntity {

	private static final long serialVersionUID = 2582937478342906991L;

	/**
	 * 流水号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_ande_product")
	@SequenceGenerator(name = "seq_ec_ande_product", sequenceName = "SEQ_EC_ANDE_PRODUCT")
	@Column(name = "ID")
	private Long id;

	@Column(name = "PRODUCT_ID", length = 8, nullable = false)
	private String productId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
}